package com.saodisheng.service.impl;

import com.saodisheng.model.Posts;
import com.saodisheng.service.PostService;
import org.springframework.stereotype.Service;

/**
 *
 * @author 扫地生_saodisheng
 * @date 2022/1/28
 */
@Service
public class PostServiceImpl implements PostService {
	final Posts postDao = new Posts().dao();
	
	@Override
	public Posts getPostById(int id) {
		Posts posts = postDao.findById(id);
		return posts;
	}
}
